from w.utils.tsystem.template import *

OPTIONS = Options

#render(templateName, templateData) is a small helpful function for anybody
#not interested in template processor instance creation. Uses a singletone object for
#each processor class affected by USE_PROCESSOR package param
def render(templateName, templateData=None, **kwargs):
    return OPTIONS.processorClass.create().process(templateName, templateData or kwargs)

def make(templateName, templateData=None, **kwargs):
    return OPTIONS.processorClass.create().make(templateName, templateData or kwargs)
